Skip to content

chore: sync all Dart minimum versions to 3.7.0#3171

Closed
PureTryOut wants to merge 1 commit intonextcloud:mainfrom
PureTryOut:dart-version
Closed

chore: sync all Dart minimum versions to 3.7.0#3171
PureTryOut wants to merge 1 commit intonextcloud:mainfrom
PureTryOut:dart-version

Conversation

@PureTryOut
Copy link
Collaborator

According to https://dart.dev/tools/pub/workspaces this version is required for the Pub workspaces feature which we actually use in this repo.

@PureTryOut PureTryOut force-pushed the dart-version branch 2 times, most recently from df1e1e0 to ec75399 Compare February 19, 2026 19:38
@provokateurin
Copy link
Member

I rebased the PR and removed the pubspec.lock changes which didn't seem related (and I could not reproduce them after reverting them an running fvm flutter pub get).

@provokateurin provokateurin enabled auto-merge March 23, 2026 19:31
@provokateurin
Copy link
Member

This seems to trigger a bunch of formatting changes, but to me they look like a step backwards.

@provokateurin provokateurin changed the title chore: sync all Dart minimum versions to 3.6.0 chore: sync all Dart minimum versions to 3.7.0 Mar 24, 2026
@provokateurin
Copy link
Member

Seems intentional: dart-lang/dart_style#1652
It can be disabled with an option, but that is only available in 3.8.
So I will just merge this as is and we can still change it back later (if we want).

According to https://dart.dev/tools/pub/workspaces 3.6.0 or higher is
required for the Pub workspaces feature which we actually use in this
repo. Since our CI seems to require 3.7.0 however, let's use that as our
new minimum.

Signed-off-by: Bart Ribbers <bribbers@disroot.org>
Signed-off-by: provokateurin <kate@provokateurin.de>
@Leptopoda
Copy link
Member

I disagree with the fundamental idea of this PR.
We can limit developers of this project to a newer dart version by bumping the workspace version while preserving downstream users to use an older dart version.

The monorepo functionality does not change package resolution for downstream users so we do not need to bump it in every pacakge.

I also think that we should use a dart version where the formatter is not broken (iirc 3.7 was just a fucked release).
On 3.8 we can adjust the formatter to more closely reflect our old behavior.

@Leptopoda
Copy link
Member

I'm going to work on #3083 to update the flutter version used during development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants